const { join } = require('path')
const service = {
    port: 3000
}

const database = {
    entities: [__dirname + "/models/**/*.js"],
    synchronize: true,
    database: 'user',
    username: 'root',
    password: 'root',
    type: 'mysql',
    host: '127.0.0.1',
    port: 3306,
    pool: {
        max: 10,
        min: 0,
        idle: 30000
    }
}

module.exports = {
    service,
    database
}